package cn.sdormitory.report.service.impl;

import cn.sdormitory.report.dao.ClassDvStaDao;
import cn.sdormitory.report.service.ClassDvStaService;
import cn.sdormitory.report.vo.ClassDvStaVO;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @创建人：zhouyang
 * @创建时间：2022/02/5 12:26
 * @version：V1.0
 */
@Slf4j
@Service("classDvStaService")
public class ClassDvStaServiceImpl extends ServiceImpl<ClassDvStaDao, ClassDvStaVO> implements ClassDvStaService {
    @Resource
    ClassDvStaDao classDvStaDao;
    @Override
    public List<ClassDvStaVO> getClassDvStaList(String inYearMonth, int pageNum, int pageSize) {
        int currIndex=(pageNum-1)*pageSize;
        return classDvStaDao.getClassDvStaList(inYearMonth,currIndex,pageSize);
    }

    @Override
    public Long getClassDvStaListCount(String inYearMonth) {
        return classDvStaDao.getClassDvStaListCount(inYearMonth);
    }

    @Override
    public List<ClassDvStaVO> getClassDvStaListExport(String inYearMonth) {
        return classDvStaDao.getClassDvStaListExport(inYearMonth);
    }

}
